package com.kotlin.user.data.repository

import com.kotlin.library.data.net.RetrofitFactory
import com.kotlin.library.data.protocol.BaseResp
import com.kotlin.user.data.api.UserApi
import com.kotlin.user.data.protocol.UserRegisterResq
import rx.Observable
import javax.inject.Inject

/**
 *
 * USER: zjw
 * DATA: 2018/11/28 0028
 * TIME: 上午 10:16
 */
class UserRepository @Inject constructor(){
    fun register(mobile: String, pwd: String, verifyCode: String): Observable<BaseResp<String>> {
        return RetrofitFactory.instace.create(UserApi::class.java).register(UserRegisterResq(mobile, pwd, verifyCode))
    }
}